package com.aifast.system.sys.entity;

import com.aifast.common.base.BaseEntity;
import com.aifast.common.dict.DictBind;
import com.aifast.common.dict.DictBindEasyExcelConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 站内信对象 sys_message
 *
 * @author fujian
 * @date 2022-10-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型", converter = DictBindEasyExcelConverter.class)
    @DictBind(type = "msgType")
    private Integer type;

    /**
     * 展示图片
     */
    @ExcelProperty("展示图片")
    private String image;

    /**
     * 标题
     */
    @ExcelProperty("标题")
    private String title;

    /**
     * 内容
     */
    @ExcelProperty("内容")
    private String message;

    /**
     * 展示时间
     */
    @ExcelProperty("展示时间")
    private Integer timeout;

    /**
     * 展示位置
     */
    @ExcelProperty("展示位置")
    private String position;

    /**
     * 跳转链接地址
     */
    @ExcelProperty("跳转链接地址")
    private String linkUrl;

    /**
     * 发送对象
     * <br>sendType == 2 objectValue按部门id拼接
     * <br>sendType == 3 objectValue按用户id拼接
     */
    private Integer sendType;
    /**
     * 发送对象的值
     */
    private String ObjectValue;

    private Integer tenantId;

}
